xend: bootable flag of VBD not always of type int
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 21 Oct 2009 08:23:10 +0000 (09:23 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 21 Oct 2009 08:23:10 +0000 (09:23 +0100)
commit6d1d7ac48ca2a2df0415963bf7cf424bf50801d6
tree3be4d6f4dfa29910f79ff35df3c0ae877df23ae4
parentba0d6cfc6b6cdf9e58ab5c625452ab9c4852764b
xend: bootable flag of VBD not always of type int

1. Calling VDB.set_bootable(True) results in string 'True' in managed
   config file. After xend restart, conversion int(bootable) in
   server/blkif.py fails.
2. selection of bootable disks in XendDomainInfo.py requires
   type(bootable) == int not str, otherwise all disks are taken as
   bootable.

This patch converts the bootable flag always to int.

Signed-off-by: Lutz Dube <Lutz.Dube@ts.fujitsu.com>
tools/python/xen/xend/XendAPI.py
tools/python/xen/xend/XendConfig.py